package com.dominator.repository;

import com.dominFramework.core.dao.SqlDao;
import com.dominFramework.core.typewrap.Dto;
import com.dominator.mybatis.dao.T_cityDao;
import com.dominator.utils.dao.JdbcHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
public class DaoCity {
    @Resource
    JdbcHelper jh;


    @Autowired
    SqlDao sqlDao;


    @Autowired
    T_cityDao cityDao;


    /**
     * 查询所有的符合条件的市
     *
     * @return
     */
    public List<Dto> getCity(Dto dto) {
        return sqlDao.list("City.selectAll", dto);
    }


}
